package com.xunji.user.service;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xunji.user.dto.RoleMenuDto;
import com.xunji.user.entity.Role;
import com.xunji.user.vo.req.RoleAddRequest;
import com.xunji.user.vo.req.RoleQueryRequest;
import com.xunji.user.vo.req.RoleUpdateRequest;

import java.util.List;

public interface RoleService {
    void add(RoleAddRequest request);

    Page<RoleMenuDto> page(RoleQueryRequest request);

    void update(RoleUpdateRequest request);

    void deleteById(String id);
    List<Role> listByIds(List<String> ids);
    List<Role> getRoles();

    List<Role> selectByName(String name);

    List<Role> selectByNameWithoutId(String name, String id);
}
